package com.my.demoo.config;

import com.my.demoo.entity.UserInfo;
import com.my.demoo.service.UserInfoService;
import com.my.demoo.service.impl.UserInfoServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class HomeController {
    @Autowired
    private UserInfoService userInfoService;
    @GetMapping("/show")
    public List<UserInfo> show(){
        return userInfoService.getUserList();
    }
}
